<script setup lang="ts">
import useItem from "@/logics/useItem";

const { hour, minute, second } = useItem();
</script>
<template>
  <div class="intro">
    <ul class="item">
      <li>
        {{ hour }}
        <p>hours</p>
      </li>
      <li>:</li>
      <li>
        {{ minute }}
        <p>minutes</p>
      </li>
      <li>:</li>
      <li>
        {{ second }}
        <p>seconds</p>
      </li>
    </ul>
    <div class="intro_foot">
      <div class="title">Ranqi Blog</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.intro {
  border-radius: 5px;
  width: 250px;
  justify-content: space-around;
  .item {
    height: 130px;
    font-size: 40px;
    color: white;
    display: flex;

    background-image: url(https://api.adicw.cn/uploads/StudyImg/6050c8a16e416.jpg);
    background-size: cover;
    border-radius: 5px;
    li {
      margin-top: 20px;
      p {
        font-size: 12px;
        padding-top: 20px;
        text-align: center;
      }
    }
  }
  .intro_foot {
    .title {
      font-weight: 700;
      color: #08d9d6;
    }
  }
}
</style>
